﻿<local:KeyedWindowBase x:Class="RawDirectoryPicker"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:local="clr-namespace:RawExplorer2.UI"
                       Title="Choose Raw Directory"
                       Width="520"
                       Height="130"
                       TextOptions.TextFormattingMode="Display">
    <Window.DataContext>
        <local:RawDirectroyPickerVm />
    </Window.DataContext>
    <Grid RenderTransformOrigin="0.5,0.453">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid Grid.ColumnSpan="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" VerticalAlignment="Center">Raw Directory:</Label>
            <ComboBox Name="cboDirectory"
                      Grid.Column="1"
                      Height="auto"
                      Margin="8"
                      HorizontalAlignment="Stretch"
                      IsEditable="True"
                      ItemsSource="{Binding Path=RecentDirectories}"
                      Text="{Binding Path=RawDirectoryPath,
                                     Mode=TwoWay}" />
        </Grid>
        <Button Grid.Row="1"
                Grid.Column="1"
                Width="75"
                Margin="8"
                HorizontalAlignment="Left"
                VerticalAlignment="bottom"
                Command="{Binding Path=OkCommand}"
                Content="OK"
                IsDefault="True" />
        <Button Grid.Row="1"
                Grid.Column="2"
                Width="75"
                Margin="8"
                HorizontalAlignment="Left"
                VerticalAlignment="bottom"
                Content="Cancel"
                IsCancel="True" />

    </Grid>

</local:KeyedWindowBase>
